export const pageSetting = ['JnPrjDetail', 'SpecialCause', 'SpecialWastage', 'PurchaseOrder', 'SpecialCheckPerson', 'ZrAttachmetl','JnTaskDetail']
export const tabOption = [
    {
        label: '物资订单明细信息',
        name: 'materialOrderInfo'
    },
    {
        label: '服务订单明细信息',
        name: 'serviceOrderInfo'
    }
]
export const titleList = [
    {
        title: "(1)请先核实订单数据是否齐全，如不全请点击【取消更新采购订单】按钮并重新更新获取商合采购订单；多次更新订单仍不全时请咨询商合交易系统进行核实（提供项目编码与订单号）；"
    },
    {
        title: "(2)根据商合系统要求，当同一个服务商的同一类服务模块订单有多条记录时，每次特别修正操作只能调整其中的一条记录，请知晓！如有疑问请咨询商合交易系统；"
    },
    {
        title: "(3)如果需要对服务类订单金额调整，请在【变化合价】列填写调增或调减的金额（调增填写正数，调减填写负数），【变化后合价】列将自动计算出调整后订单的总金额；"
    }, {
        title: "(4)根据<供应链管理部>要求只允许塔、房和电源等设备退至虚拟库（即退库类型允许选择可用不入库或不可用不入库），其余物资不允许退至虚拟库。",
        showbtn: true
    }
]

export const materialColumns = [
    { label: '站址编码', prop: 'siteId', },
    { label: '物资编码', prop: 'scategoryCode' },
    { label: '物资名称', prop: 'categoryName' },
    { label: '单位', prop: 'unit' },
    { label: '采购订单号', prop: 'orderNo' },
    { label: '供应商编码', prop: 'supplierCode' },
    { label: '供应商名称', prop: 'supplier', },
    { label: '合同编号', prop: 'contractCode' },
    { label: '是否利旧资产', prop: 'outPutTypeName' },
    { label: '资产编码', prop: 'assetCode' },
    { label: '资产名称', prop: 'assetName' },
    { label: '单价(不含税)', prop: 'price' },
    { label: '数量', prop: 'amount' },
    { label: '合价(不含税)', prop: 'equipSum' },
    { label: '税率', prop: 'taxRate' },
    { label: '税额(元)', prop: 'taxAmount' },
    { label: '含税总价(元)', prop: 'amt' },
    { label: '调增数量', prop: 'changeNum', edit: true },
    {
        label: '无实物调减', width: '100', prop: '',
        children: [
            {
                label: '调减金额(元)',
                prop: 'noMaterialReduceAmount',
                width: '100',
            },
            {
                label: '不可用不入库',
                prop: 'disableNotUnusableStorage',
                width: '100',
                edit: true
            }
        ],
        edit: true
    },
    {
        label: '有实物调减', width: '100', prop: '',
        children: [
            {
                label: '可用入库',
                prop: 'usableStorage',
                width: '100',
                edit: true
            },
            {
                label: '不可用入库',
                prop: 'unusableStorage',
                width: '100',
                edit: true
            },
            {
                label: '可用不入库',
                prop: 'notUsableStorage',
                width: '100',
                edit: true
            },
            {
                label: '不可用不入库',
                prop: 'notUnusableStorage',
                width: '100',
                edit: true
            }, {
                label: '保管人',
                prop: 'storemanName',
                width: '100',
                edit: true
            },
            {
                label: '保管人联系方式',
                prop: 'storemanNum',
                width: '100',
                edit: true
            },
            {
                label: '保管地址',
                prop: 'storageAddress',
                width: '100',
                edit: true
            }
        ],
        edit: true
    },
    { label: '变化后数量', prop: 'doneNum' },
    { label: '变化合价', prop: 'changePrice', edit: true },
    { label: '变化后合价(不含税)', prop: 'donePrice' },
    { label: '调整后税额(元)', prop: 'doneTaxAmount' },
    { label: '调整后含税总价(元)', prop: 'doneAmt' },
    { label: '是否变化', prop: 'status', check: true },
]

export const serviceColumns = [
    { label: '站址编码', prop: 'siteId', },
    { label: '采购订单号', prop: 'orderNo' },
    { label: '服务编码', prop: 'scategoryCode' },
    { label: '服务编码名称', prop: 'categoryName' },
    { label: '单位', prop: 'unit' },
    { label: '供应商编码', prop: 'supplierCode' },
    { label: '供应商名称', prop: 'supplier', },
    { label: '合同编号', prop: 'contractCode' },
    { label: '单价(不含税)', prop: 'price' },
    { label: '调整后单价(不含税)', prop: 'adjustedPrice', edit: true, width: '120' },
    { label: '数量', prop: 'amount' },
    { label: '合价(不含税)', prop: 'equipSum' },
    { label: '税率', prop: 'taxRate' },
    { label: '税额(元)', prop: 'taxAmount' },
    { label: '含税总价(元)', prop: 'amt' },
    { label: '变化合价', prop: 'changePrice', edit: true, width: '120' },
    { label: '变化数量', prop: 'changeNum', edit: true, width: '120' },
    { label: '变化后数量', prop: 'doneNum' },
    { label: '变化后合价', prop: 'donePrice' },
    { label: '调整后税额(元)', prop: 'doneTaxAmount' },
    { label: '调整后含税总价(元)', prop: 'doneAmt' },
    { label: '是否变更供应商', prop: 'ifChangeSer', check: true },
    { label: '是否变化', prop: 'status', check: true },
]

// 二级表格编辑
export const subEditor = [
    'nomaterialReduceAmount',
    'disableNotUnusableStorage',
    'usableStorage',
    'unusableStorage',
    'notUsableStorage',
    'notUnusableStorage',
    'storemanName',
    'storemanNum',
    'storageAddress'
]

export const configColumns = [
    { label: '需求单号', prop: 'demandId', },
    { label: '项目编码', prop: 'prjCode' },
    { label: '项目名称', prop: 'prjName' },
    { label: '项目年份', prop: 'prjYear' },
    { label: '建设单位', prop: 'orgName' },
    { label: '所属区域', prop: 'countyName' },
    { label: '项目类型', prop: 'prjType' },
    { label: '版本号', prop: 'adjVersion', },
    { label: '当前办理节点', prop: 'taskNodeName' },
    { label: '当前办理人', prop: 'taskPerson' },
    { label: '结算送审状态', prop: 'settIsPush' },
    { label: '结算审计状态', prop: 'settAuditState' },
    { label: '决算送审状态', prop: 'finIsPush' },
    { label: '决算审计状态', prop: 'finAuditState' },
    { label: '创建人', prop: 'creatPerson' },
    { label: '创建日期', prop: 'creatDate' }
]
export const configColumnsSearchList = [
    { label: '版本号', prop: 'adjVersion'},
    { label: '特别修正发起时间', prop: 'creatDate' },
    { label: '特别修正完成时间', prop: 'taskEndTime' },
    { label: '特别修正原因', prop: 'afterModifyRemark' },
    { label: '特别修正结算送审状态', prop: 'settIsPush' },
    { label: '特别修正决算送审状态', prop: 'finIsPush' },
   ]
// 特别修正搜索表单
export const formOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'input',
            prop: 'prjCode',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '工程项目编码'
        },
        {
            type: 'input',
            prop: 'prjName',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目名称'
        },
        {
            type: 'select',
            prop: 'prjYear',
            value: new Date().getFullYear().toString(),
            width: '',
            colSpan: 6,
            label: '项目年份',
            dicType: 'PRJ_YEAR',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjType',
            value: '',
            width: '',
            colSpan: 6,
            label: '项目类型',
            dicType: 'PROJ_TYPE',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'slot',
            prop: 'orgId',
            value: '',
            width: '',
            colSpan: 6,
            label: '建设单位',
            dicType: 'BUILD_UNIT',
            clearable: true,
            dicProp: {
                label: 'orgName',
                value: 'orgId'
            }
        },
        {
            type: 'input',
            prop: 'demandId',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '需求订单编号'
        },
        {
            type: 'select',
            prop: 'currentState',
            value: '',
            width: '',
            colSpan: 6,
            label: '特别修正状态',
            dicType: 'datamodifyNew02',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'isNewbusiness',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: false,
            label: '业务类型',
            dicType: 'IS_NEWBUSINESS',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
    ]
}

export const PersonColumns = [
    { label: '处理环节', prop: 'processStepsName', },
    { label: '部门', prop: 'orgName' },
    { label: '姓名', prop: 'empName' },
    { label: '操作', prop: 'operateName', operate: true },
]

export const checkPersonColumns = [
    { label: '公司', prop: 'companyName' },
    { label: '部门', prop: 'orgName' },
    { label: '角色', prop: 'roleName' },
    { label: '姓名', prop: 'empName' },
]

export const PersonformOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'input',
            prop: 'empName',
            value: '',
            width: '',
            colSpan: 12,
            clearable: true,
            label: '姓名：'
        },
        {
            type: 'input',
            prop: 'orgName',
            value: '',
            width: '',
            colSpan: 12,
            clearable: true,
            label: '部门：'
        },
    ]
}

export const OrderformOption = {
    size: 'mini',
    inline: true,
    labelWidth: '180px',
    itemData: [
        {
            type: 'select',
            prop: 'isUpdateOrder',
            value: '',
            width: '63px', // 宽度
            colSpan: 24, // 栅格数
            label: '是否更新采购订单',
            dicType: 'PRO_STAGE',
            clearable: true,
            disabled: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
    ]
}